package com.cskaoyan.bean.wx_home_index;

import com.cskaoyan.bean.market.Brand;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description:
 * @Author: WD created on 2021-09-18 17:07
 * @Version:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InnerBrand {
    private Integer id;
    private String name;
    private String desc;
    private String picUrl;
    private Double floorPrice;

    public InnerBrand(Brand brand) {
        this.id = brand.getId();
        this.name = brand.getName();
        this.desc = brand.getDesc();
        this.picUrl = brand.getPicUrl();
        this.floorPrice = brand.getFloorPrice().doubleValue();
    }
}
